import logging

def cal():
    logging.basicConfig(filename="log.log",filemode="w",level=logging.DEBUG,
                        format="%(asctime)s -- %(filename)s -- %(message)s")